package com.yantong.mapper;

import com.yantong.pojo.BranchOffice;
import com.yantong.pojo.BranchOfficeExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface BranchOfficeMapper {
    int countByExample(BranchOfficeExample example);

    int deleteByExample(BranchOfficeExample example);

    int deleteByPrimaryKey(Long id);

    int insert(BranchOffice record);

    int insertSelective(BranchOffice record);

    List<BranchOffice> selectByExample(BranchOfficeExample example);

    BranchOffice selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") BranchOffice record, @Param("example") BranchOfficeExample example);

    int updateByExample(@Param("record") BranchOffice record, @Param("example") BranchOfficeExample example);

    int updateByPrimaryKeySelective(BranchOffice record);

    int updateByPrimaryKey(BranchOffice record);

    List<BranchOffice> selectByExample(BranchOfficeExample branchOfficeExample, RowBounds rowBounds);

    BranchOffice selectByUserId(Long userId);

    BranchOffice selectNotDeleteByKey(Long branchOfficeId);
}